package com.woniuxy.company5.service.impl;

import com.woniuxy.company5.entity.MacList;
import com.woniuxy.company5.mapper.MacListMapper;
import com.woniuxy.company5.service.MacListService;
import com.woniuxy.company5.vo.MacInformationVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.crypto.Mac;


@Service
public class MacListServiceImpl implements MacListService {
    @Resource
    private MacListMapper macListMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return 0;
    }

    @Override
    public int insert(MacList record) {
        return 0;
    }

    @Override
    public int insertSelective(MacList record) {
        return macListMapper.insertSelective(record);
    }

    @Override
    public MacList selectByPrimaryKey(Long id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(MacList record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(MacList record) {
        return 0;
    }

    @Override
    public int insertSelective(Integer inventory, int id, int typeId) {
        MacList macList = new MacList();
        macList.setInventory(inventory);
        macList.setInformationId(id);
        macList.setType(typeId+"");
        return macListMapper.insertSelective(macList);
    }

}
